package com.hzw.saas.service.project.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zzl
 * @since 08/11/2021
 */
public class ProjectConsts {


    /**
     * 项目申请流程定义ID
     */
    public static final String PROJECT_FLOW_ID = "1";

    /**
     * 新建项目申请提交ID
     */
    public static final String FLOW_PROCESS_SUBMIT_ID = "10011002";

    /**
     * 新建项目申请提交ID
     */
    public static final String FLOW_PROCESS_ACCEPTANCE_APPLY_SUBMIT_ID = "10011002";

    /**
     * 项目通过节点ID
     */
    public static final String PROJECT_PASS_NODE_ID = "1004";

    public static final String PROJECT_WAITING_ACCEPTANCE_ID = "1012";

    /**
     * 项目申请流程中允许更新项目申请表的节点集合
     */
    public static final Map<String, String> FLOW_NODE_EDITABLE = new HashMap<>();

    /**
     * 附件大小限制
     */
    public static final long MAX_ATTACHMENT_SIZE = 50 * 1024 * 1024;

    /**
     * 单类型附件个数限制
     */
    public static final int MAX_ATTACHMENT_COUNT = 5;

    public static final int MAX_ACCEPTANCE_ATTACHMENT_SIZE = 50 * 1024 * 1024;

    public static final int MAX_ACCEPTANCE_ATTACHMENT_COUNT = 15;


    public static final String PROJECT_APPLY_SERVICE_SUBMIT = "PROJECT_APPLY_SERVICE_SUBMIT";
    public static final String PROJECT_APPLY_SERVICE_RETURN = "PROJECT_APPLY_SERVICE_RETURN";

    /**
     * 审批删除业务
     */
    public static final String PROJECT_APPLY_SERVICE_REMOVE = "PROJECT_APPLY_SERVICE_REMOVE";

    public static final String PROJECT_ACCEPTANCE_APPLY_SUBMIT = "PROJECT_ACCEPTANCE_APPLY_SUBMIT";

    static {
        FLOW_NODE_EDITABLE.put("1001", "10011002");
        FLOW_NODE_EDITABLE.put("1003", "10031002");
        FLOW_NODE_EDITABLE.put("1004", "10041012");
        FLOW_NODE_EDITABLE.put("1013", "10131012");
    }

    /**
     * 项目申请表logo
     */
    public static final String PROJECT_APPLY_PDF_LOGO_S3_URL = "https://prod-saas-base.s3.cn-northwest-1.amazonaws.com.cn/project/logo.png";
    /**
     * 项目申请表水印
     */
    public static final String PROJECT_APPLY_PDF_REMARK_S3_URL = "https://prod-saas-base.s3.cn-northwest-1.amazonaws.com.cn/project/remark.png";


}
